package top.infopub.mgr.mkt.service;

import java.text.ParseException;
import java.util.List;

import top.infopub.generic.GenericService;
import top.infopub.mgr.mkt.domain.ProSellDomain;
import top.infopub.mgr.mkt.domain.ProjectDomain;
import top.infopub.mgr.mkt.vo.ProSellVo;
import top.infopub.model.mkt.*;

import com.github.pagehelper.Page;

public interface ProSellService extends GenericService<ProSell, String> {

    /**
     * 根据条件查询记录
     * @param page
     * @param proSellVo
     * @return
     * @see
     */

    Page<ProjectInfo> selectPageByDomainWhere(Page<ProjectInfo> page, ProSellVo proSellVo) throws ParseException;

    /**
     * 根据条件查询-我审批的记录
     * @param page
     * @param proSellVo
     * @return
     * @see
     */
    Page<ProSellDomain> selectMyCheckByDomainWhere(Page<ProSellDomain> page, ProSellVo proSellVo);

    /**
     * 根据id查看详情
     * @param id
     * @return
     * @see
     */
    ProSellVo selectById(String id);

    /**
     * 新增营销策划计策
     * @param proSell
     * @param proSellCoops
     * @param proSellSubs
     * @param proSellCosts
     * @see
     */
    void addProSell(ProSell proSell, List<ProSellCoop> proSellCoops,
                    List<ProSellSub> proSellSubs, List<ProSellCost> proSellCosts);

    void editProSell(ProSell proSell, List<ProSellCost> proSellCosts,String submitType);

}
